package com.cyzy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@NoArgsConstructor
@AllArgsConstructor
@Data
@ToString
@TableName("courseCategory")
public class Course {
  @TableId(type = IdType.AUTO)
  private long courseId;
  private String courseName;
  private String courseType;
  private long campusId;
  private long hours;
  private double price;
  private String courseDescription;
  private String fileId;
  private String courseStatus;
  private String startTime;
  private String endTime;
  private long courseStock;
  private String createTime;
  private String updateTime;
  private long categoryId;

  //图片路径
  @TableField(exist = false)
  private String url;
  //已购数量
  @TableField(exist = false)
  private String orderCount;
}
